<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1,maximum-scale=1">
  <title>Fruit</title>
  <link rel="stylesheet" href="../mobile-picker.css">
  <link rel="stylesheet" href="./style.css">
</head>
<body>
  <div class="container">
    <label for="">水果：</label>
    <input type="text" id="fruit">
  </div>
<script src="../mobile-picker.js"></script>
<script>
var fruit = ['苹果','香蕉','火龙果','芒果','百香果'];
new Picker({
  target: '#fruit',
  data: fruit,
  value: '火龙果',
  confirm: function(value,data){
    console.log(value,data)
  },
  initCallback: function(value,result){
    console.log(value,result)
  }
});
</script>
</body>
</html>